package com.atguigu.mybatisplus.entity;/*
@author mx
@date 2021-09-17-23:00
*/

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data public class User {

    private Long id;
    private String name;
    private Integer age;
    private String email;
    @TableField(fill = FieldFill.INSERT) private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE) private Date updateTime;
    @Version @TableField(fill = FieldFill.INSERT) private Integer version;
    @TableLogic @TableField(fill = FieldFill.INSERT) private Integer deleted;
}
